<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="<?=base_url('publics/admin');?>/lib/html5.js"></script>
<script type="text/javascript" src="<?=base_url('publics/admin');?>/lib/respond.min.js"></script>
<script type="text/javascript" src="<?=base_url('publics/admin');?>/lib/PIE_IE678.js"></script>
<![endif]-->
<link href="<?=base_url('publics/admin');?>/style/styles.css" rel="stylesheet" type="text/css" />
<link href="<?=base_url('publics/admin');?>/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="<?=base_url('publics/admin');?>/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="<?=base_url('publics/admin');?>/lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<link href="<?=base_url('publics/admin');?>/lib/font-awesome/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!--[if IE 7]>
<link href="<?=base_url('publics/admin');?>/lib/font-awesome/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
<![endif]-->
<link href="<?=base_url('publics/admin');?>/lib/iconfont/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="<?=base_url('publics/admin');?>/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<script type="text/javascript" src="<?php echo base_url('publics')?>/admin/editor/kindeditor.js"></script>     
<script type="text/javascript" src="<?php echo base_url('publics')?>/admin/editor/lang/zh_CN.js"></script>
<title>产品属性</title>
</head>
<body>
<div id="main_right">
  <div id="r_title">
    <div id="r_title_content">
      产品属性管理 &gt; 编辑产品属性
    </div>
  </div>
  
  <div id="r_menu">
    <ul>
      <li><a class="btn btn-primary radius" href="<?=base_url('manage/attribute');?>">返回列表</a></li>
    </ul>
  </div>
    <div class="line_white"></div>
  <div id="r_list">
   <?php echo validation_errors(); ?>
    <form action="" method="post" class="form form-horizontal" id="form-menu-add"  onsubmit="return menu_add();">
    <div class="row cl">
      <label class="form-label col-3"><span class="c-red">*</span>产品名称：</label>
      <div class="formControls col-5">
        <select name="pro_id" id="pro_id">
          <option value="0">|_ 请选择产品&nbsp; </option>
          <?=$product;?>
        </select>
      </div>
      <div class="col-4"> </div>
    </div>
    <div class="row cl">
      <label class="form-label col-3"><span class="c-red">*</span>属性名称：</label>
      <div class="formControls col-5">
      <input type="text" size="30" name="name" id="name" placeholder=""  datatype="*2-16" class="input-text" nullmsg="名称不能为空" value="<?=$arr['attr_name'];?>" />
      </div>
      <div class="col-4"> </div>
    </div>
    <div class="row cl">
      <label class="form-label col-3"><span class="c-red">*</span>表单属性名：</label>
      <div class="formControls col-5">
      <input type="text" size="30" name="names" id="names" placeholder=""  datatype="*1-20" class="input-text" nullmsg="名称不能为空" value="<?=$arr['attr_names'];?>"/>
      </div>
      <div class="col-4"> </div>
    </div>
    <div class="row cl">
      <label class="form-label col-3"><span class="c-red"></span>属性简介：</label>
      <div class="formControls col-5">
      <input type="text" size="30" name="profile" id="profile" placeholder=""  datatype="*0-50" class="input-text" nullmsg="" value="<?=$arr['attr_profile'];?>"/>
      </div>
      <div class="col-4"> </div>
    </div>
    <div class="row cl">
      <label class="form-label col-3"><span class="c-red">*</span>属性类型：</label>
       <div class="formControls col-5 skin-minimal">
        <div class="radio-box">
          <input type="radio" id="type-1" value="other" name="type"  <?php if($arr['attr_type'] == 'other'):?>checked="checked"<?php endif;?> >
          <label for="sex-2">其它</label>
        </div>
        <div class="radio-box">
          <input type="radio" id="type-2" name="type" value="select"  datatype="*" nullmsg="请选择状态！" <?php if($arr['attr_type'] == 'select'):?>checked="checked"<?php endif;?> >
          <label for="sex-2">下拉菜单</label>
        </div>
        <div class="radio-box">
          <input type="radio" id="type-3" value="radio" name="type" <?php if($arr['attr_type'] == 'radio'):?>checked="checked"<?php endif;?>>
          <label for="sex-3">单选按钮</label>
        </div>
        <div class="radio-box">
          <input type="radio" id="type-4" name="type" value="text" datatype="*" nullmsg="请选择状态！"  <?php if($arr['attr_type'] == 'text'):?>checked="checked"<?php endif;?>>
          <label for="sex-4">文本框</label>
        </div>
        <div class="radio-box">
          <input type="radio" id="type-5" value="textarea" value="textarea"  name="type" <?php if($arr['attr_type'] == 'textarea'):?>checked="checked"<?php endif;?>>
          <label for="sex-5">文本域</label>
        </div>   
      </div>
      <div class="col-4"> </div>
    </div>    
    <div class="row cl">
      <label class="form-label col-3"><span class="c-red">*</span>排序：</label>
      <div class="formControls col-5">
        <input type="number" size="30" value="1" name="sort" id="sort" placeholder=""  datatype="*1-200" class="input-text" nullmsg="排序不能为空"  value="<?=$arr['attr_sort'];?>"/>
      </div>
      <div class="col-4"> </div>
    </div>
    <div class="row cl">
      <label class="form-label col-3"><span class="c-red">*</span>是否选择地区：</label>
      <div class="formControls col-5 skin-minimal">
        <div class="radio-box">
          <input type="radio" id="sex-1" name="attr_region" value="0"   <?php if($arr['attr_region'] == '0'):?>checked="checked"<?php endif;?> datatype="*" nullmsg="请选择状态！">
          <label for="sex-1">否</label>
        </div>
        <div class="radio-box">
          <input type="radio" id="sex-2" value="1" name="attr_region"   <?php if($arr['attr_region'] == '1'):?>checked="checked"<?php endif;?>>
          <label for="sex-2">是</label>
        </div>
      </div>
      <div class="col-4"> </div>
    </div>
    <div class="row cl">
      <label class="form-label col-3"><span class="c-red">*</span>状态：</label>
      <div class="formControls col-5 skin-minimal">
        <div class="radio-box">
          <input type="radio" id="sex-1" name="status" value="1" <?php if($arr['attr_status'] == '1'):?>checked="checked"<?php endif;?>  datatype="*" nullmsg="请选择状态！">
          <label for="sex-1">有效</label>
        </div>
        <div class="radio-box">
          <input type="radio" id="sex-2" value="0" name="status" <?php if($arr['attr_status'] == '0'):?>checked="checked"<?php endif;?> >
          <label for="sex-2">无效</label>
        </div>
      </div>
      <div class="col-4"> </div>
    </div>
    <div class="row cl">
      <div class="col-9 col-offset-3">
        <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
      </div>
    </div>
  </form>
  </div>
</div>
<script type="text/javascript" src="<?=base_url('publics/admin');?>/lib/jquery.min.js"></script> 
<script type="text/javascript" src="<?=base_url('publics/admin');?>/lib/icheck/jquery.icheck.min.js"></script> 
<script type="text/javascript" src="<?=base_url('publics/admin');?>/lib/Validform_v5.3.2.js"></script> 
<script type="text/javascript" src="<?=base_url('publics/admin');?>/js/H-ui.js"></script> 
<script type="text/javascript" src="<?=base_url('publics/admin');?>/js/H-ui.admin.js"></script> 
<script type="text/javascript">
$(function(){
	$("#form-menu-add").Validform({
		tiptype:2,
	});
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});

  var editor;
  KindEditor.ready(function(K) {
          editor = K.create('#content');
  });


});
</script> 
</body>
</html>